from django.conf.urls import patterns, url
from django.contrib.auth.models import User
from django.contrib.formtools.tests.wizard.forms import UserForm
from django.views import generic
from forms import UsuarioForm
from models import Usuario
import autocomplete_light


urlpatterns = patterns('usuarios.views',
    url(r'add/$', generic.CreateView.as_view(
        model=Usuario, form_class=UsuarioForm),name='usuario_create'),
    url(r'(?P<pk>\d+)/update/$', generic.UpdateView.as_view(
        model=Usuario,form_class=UsuarioForm ), name='usuario_update'),
                       
    url(r'add/user$', generic.CreateView.as_view(
        model=User, form_class=UserForm),name='user_create'),
    url(r'(?P<pk>\d+)/update/user$', generic.UpdateView.as_view(
        model=User,form_class=UserForm ), name='user_update'),
)